3.1.84 \(\int \frac {1}{(a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))} \, dx\) [84]

3.1.84.1 Optimal result
3.1.84.2 Mathematica [C] (verified)
3.1.84.3 Rubi [A] (verified)
3.1.84.4 Maple [B] (warning: unable to verify)
3.1.84.5 Fricas [A] (verification not implemented)
3.1.84.6 Sympy [F]
3.1.84.7 Maxima [F]
3.1.84.8 Giac [F(-2)]
3.1.84.9 Mupad [F(-1)]

3.1.84.1 Optimal result

Integrand size = 28, antiderivative size = 230 \[ \int \frac {1}{(a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))} \, dx=\frac {2 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{a^{5/2} c f}-\frac {71 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {2} \sqrt {a+a \sec (e+f x)}}\right )}{32 \sqrt {2} a^{5/2} c f}-\frac {7 \cot (e+f x) \sqrt {a+a \sec (e+f x)}}{32 a^3 c f}+\frac {13 \cos (e+f x) \cot (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{32 a^3 c f}+\frac {\cos ^2(e+f x) \cot (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{16 a^3 c f} \]

output
2*arctan(a^(1/2)*tan(f*x+e)/(a+a*sec(f*x+e))^(1/2))/a^(5/2)/c/f-71/64*arct 
an(1/2*a^(1/2)*tan(f*x+e)*2^(1/2)/(a+a*sec(f*x+e))^(1/2))/a^(5/2)/c/f*2^(1 
/2)-7/32*cot(f*x+e)*(a+a*sec(f*x+e))^(1/2)/a^3/c/f+13/32*cos(f*x+e)*cot(f* 
x+e)*sec(1/2*f*x+1/2*e)^2*(a+a*sec(f*x+e))^(1/2)/a^3/c/f+1/16*cos(f*x+e)^2 
*cot(f*x+e)*sec(1/2*f*x+1/2*e)^4*(a+a*sec(f*x+e))^(1/2)/a^3/c/f
 
3.1.84.2 Mathematica [C] (verified)

Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.

Time = 0.52 (sec) , antiderivative size = 117, normalized size of antiderivative = 0.51 \[ \int \frac {1}{(a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))} \, dx=-\frac {\left (71 \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},1,\frac {1}{2},\frac {1}{2} (1-\sec (e+f x))\right ) (1+\sec (e+f x))^2-2 \left (17+13 \sec (e+f x)+32 \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},1,\frac {1}{2},1-\sec (e+f x)\right ) (1+\sec (e+f x))^2\right )\right ) \tan (e+f x)}{32 c f (-1+\sec (e+f x)) (a (1+\sec (e+f x)))^{5/2}} \]

input
Integrate[1/((a + a*Sec[e + f*x])^(5/2)*(c - c*Sec[e + f*x])),x]
 
output
-1/32*((71*Hypergeometric2F1[-1/2, 1, 1/2, (1 - Sec[e + f*x])/2]*(1 + Sec[ 
e + f*x])^2 - 2*(17 + 13*Sec[e + f*x] + 32*Hypergeometric2F1[-1/2, 1, 1/2, 
 1 - Sec[e + f*x]]*(1 + Sec[e + f*x])^2))*Tan[e + f*x])/(c*f*(-1 + Sec[e + 
 f*x])*(a*(1 + Sec[e + f*x]))^(5/2))
 
3.1.84.3 Rubi [A] (verified)

Time = 0.51 (sec) , antiderivative size = 230, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3042, 4392, 3042, 4375, 374, 27, 441, 25, 27, 445, 25, 27, 397, 216}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {1}{(a \sec (e+f x)+a)^{5/2} (c-c \sec (e+f x))} \, dx\)

\(\Big \downarrow \) 3042

\(\displaystyle \int \frac {1}{\left (a \csc \left (e+f x+\frac {\pi }{2}\right )+a\right )^{5/2} \left (c-c \csc \left (e+f x+\frac {\pi }{2}\right )\right )}dx\)

\(\Big \downarrow \) 4392

\(\displaystyle -\frac {\int \frac {\cot ^2(e+f x)}{(\sec (e+f x) a+a)^{3/2}}dx}{a c}\)

\(\Big \downarrow \) 3042

\(\displaystyle -\frac {\int \frac {1}{\cot \left (e+f x+\frac {\pi }{2}\right )^2 \left (\csc \left (e+f x+\frac {\pi }{2}\right ) a+a\right )^{3/2}}dx}{a c}\)

\(\Big \downarrow \) 4375

\(\displaystyle \frac {2 \int \frac {\cot ^2(e+f x) (\sec (e+f x) a+a)}{\left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1\right ) \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+2\right )^3}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )}{a^3 c f}\)

\(\Big \downarrow \) 374

\(\displaystyle \frac {2 \left (\frac {\int \frac {a \cot ^2(e+f x) (\sec (e+f x) a+a) \left (3-\frac {5 a \tan ^2(e+f x)}{\sec (e+f x) a+a}\right )}{\left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1\right ) \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+2\right )^2}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )}{8 a}+\frac {\cot (e+f x) \sqrt {a \sec (e+f x)+a}}{8 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )^2}\right )}{a^3 c f}\)

\(\Big \downarrow \) 27

\(\displaystyle \frac {2 \left (\frac {1}{8} \int \frac {\cot ^2(e+f x) (\sec (e+f x) a+a) \left (3-\frac {5 a \tan ^2(e+f x)}{\sec (e+f x) a+a}\right )}{\left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1\right ) \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+2\right )^2}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )+\frac {\cot (e+f x) \sqrt {a \sec (e+f x)+a}}{8 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )^2}\right )}{a^3 c f}\)

\(\Big \downarrow \) 441

\(\displaystyle \frac {2 \left (\frac {1}{8} \left (\frac {\int -\frac {a \cot ^2(e+f x) (\sec (e+f x) a+a) \left (\frac {39 a \tan ^2(e+f x)}{\sec (e+f x) a+a}+7\right )}{\left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1\right ) \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+2\right )}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )}{4 a}+\frac {13 \cot (e+f x) \sqrt {a \sec (e+f x)+a}}{4 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )}\right )+\frac {\cot (e+f x) \sqrt {a \sec (e+f x)+a}}{8 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )^2}\right )}{a^3 c f}\)

\(\Big \downarrow \) 25

\(\displaystyle \frac {2 \left (\frac {1}{8} \left (\frac {13 \cot (e+f x) \sqrt {a \sec (e+f x)+a}}{4 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )}-\frac {\int \frac {a \cot ^2(e+f x) (\sec (e+f x) a+a) \left (\frac {39 a \tan ^2(e+f x)}{\sec (e+f x) a+a}+7\right )}{\left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1\right ) \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+2\right )}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )}{4 a}\right )+\frac {\cot (e+f x) \sqrt {a \sec (e+f x)+a}}{8 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )^2}\right )}{a^3 c f}\)

\(\Big \downarrow \) 27

\(\displaystyle \frac {2 \left (\frac {1}{8} \left (\frac {13 \cot (e+f x) \sqrt {a \sec (e+f x)+a}}{4 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )}-\frac {1}{4} \int \frac {\cot ^2(e+f x) (\sec (e+f x) a+a) \left (\frac {39 a \tan ^2(e+f x)}{\sec (e+f x) a+a}+7\right )}{\left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1\right ) \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+2\right )}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )\right )+\frac {\cot (e+f x) \sqrt {a \sec (e+f x)+a}}{8 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )^2}\right )}{a^3 c f}\)

\(\Big \downarrow \) 445

\(\displaystyle \frac {2 \left (\frac {1}{8} \left (\frac {1}{4} \left (\frac {1}{2} \int -\frac {a \left (57-\frac {7 a \tan ^2(e+f x)}{\sec (e+f x) a+a}\right )}{\left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1\right ) \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+2\right )}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )-\frac {7}{2} \cot (e+f x) \sqrt {a \sec (e+f x)+a}\right )+\frac {13 \cot (e+f x) \sqrt {a \sec (e+f x)+a}}{4 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )}\right )+\frac {\cot (e+f x) \sqrt {a \sec (e+f x)+a}}{8 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )^2}\right )}{a^3 c f}\)

\(\Big \downarrow \) 25

\(\displaystyle \frac {2 \left (\frac {1}{8} \left (\frac {1}{4} \left (-\frac {1}{2} \int \frac {a \left (57-\frac {7 a \tan ^2(e+f x)}{\sec (e+f x) a+a}\right )}{\left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1\right ) \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+2\right )}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )-\frac {7}{2} \cot (e+f x) \sqrt {a \sec (e+f x)+a}\right )+\frac {13 \cot (e+f x) \sqrt {a \sec (e+f x)+a}}{4 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )}\right )+\frac {\cot (e+f x) \sqrt {a \sec (e+f x)+a}}{8 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )^2}\right )}{a^3 c f}\)

\(\Big \downarrow \) 27

\(\displaystyle \frac {2 \left (\frac {1}{8} \left (\frac {1}{4} \left (-\frac {1}{2} a \int \frac {57-\frac {7 a \tan ^2(e+f x)}{\sec (e+f x) a+a}}{\left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1\right ) \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+2\right )}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )-\frac {7}{2} \cot (e+f x) \sqrt {a \sec (e+f x)+a}\right )+\frac {13 \cot (e+f x) \sqrt {a \sec (e+f x)+a}}{4 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )}\right )+\frac {\cot (e+f x) \sqrt {a \sec (e+f x)+a}}{8 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )^2}\right )}{a^3 c f}\)

\(\Big \downarrow \) 397

\(\displaystyle \frac {2 \left (\frac {1}{8} \left (\frac {1}{4} \left (-\frac {1}{2} a \left (64 \int \frac {1}{\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )-71 \int \frac {1}{\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+2}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )\right )-\frac {7}{2} \cot (e+f x) \sqrt {a \sec (e+f x)+a}\right )+\frac {13 \cot (e+f x) \sqrt {a \sec (e+f x)+a}}{4 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )}\right )+\frac {\cot (e+f x) \sqrt {a \sec (e+f x)+a}}{8 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )^2}\right )}{a^3 c f}\)

\(\Big \downarrow \) 216

\(\displaystyle \frac {2 \left (\frac {1}{8} \left (\frac {1}{4} \left (-\frac {1}{2} a \left (\frac {71 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {2} \sqrt {a \sec (e+f x)+a}}\right )}{\sqrt {2} \sqrt {a}}-\frac {64 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a \sec (e+f x)+a}}\right )}{\sqrt {a}}\right )-\frac {7}{2} \cot (e+f x) \sqrt {a \sec (e+f x)+a}\right )+\frac {13 \cot (e+f x) \sqrt {a \sec (e+f x)+a}}{4 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )}\right )+\frac {\cot (e+f x) \sqrt {a \sec (e+f x)+a}}{8 \left (\frac {a \tan ^2(e+f x)}{a \sec (e+f x)+a}+2\right )^2}\right )}{a^3 c f}\)

input
Int[1/((a + a*Sec[e + f*x])^(5/2)*(c - c*Sec[e + f*x])),x]
 
output
(2*((Cot[e + f*x]*Sqrt[a + a*Sec[e + f*x]])/(8*(2 + (a*Tan[e + f*x]^2)/(a 
+ a*Sec[e + f*x]))^2) + ((-1/2*(a*((-64*ArcTan[(Sqrt[a]*Tan[e + f*x])/Sqrt 
[a + a*Sec[e + f*x]]])/Sqrt[a] + (71*ArcTan[(Sqrt[a]*Tan[e + f*x])/(Sqrt[2 
]*Sqrt[a + a*Sec[e + f*x]])])/(Sqrt[2]*Sqrt[a]))) - (7*Cot[e + f*x]*Sqrt[a 
 + a*Sec[e + f*x]])/2)/4 + (13*Cot[e + f*x]*Sqrt[a + a*Sec[e + f*x]])/(4*( 
2 + (a*Tan[e + f*x]^2)/(a + a*Sec[e + f*x]))))/8))/(a^3*c*f)
 

3.1.84.3.1 Defintions of rubi rules used

rule 25
Int[-(Fx_), x_Symbol] :> Simp[Identity[-1]   Int[Fx, x], x]
 

rule 27
Int[(a_)*(Fx_), x_Symbol] :> Simp[a   Int[Fx, x], x] /; FreeQ[a, x] &&  !Ma 
tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
 

rule 216
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*A 
rcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a 
, 0] || GtQ[b, 0])
 

rule 374
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_ 
), x_Symbol] :> Simp[(-b)*(e*x)^(m + 1)*(a + b*x^2)^(p + 1)*((c + d*x^2)^(q 
 + 1)/(a*e*2*(b*c - a*d)*(p + 1))), x] + Simp[1/(a*2*(b*c - a*d)*(p + 1)) 
 Int[(e*x)^m*(a + b*x^2)^(p + 1)*(c + d*x^2)^q*Simp[b*c*(m + 1) + 2*(b*c - 
a*d)*(p + 1) + d*b*(m + 2*(p + q + 2) + 1)*x^2, x], x], x] /; FreeQ[{a, b, 
c, d, e, m, q}, x] && NeQ[b*c - a*d, 0] && LtQ[p, -1] && IntBinomialQ[a, b, 
 c, d, e, m, 2, p, q, x]
 

rule 397
Int[((e_) + (f_.)*(x_)^2)/(((a_) + (b_.)*(x_)^2)*((c_) + (d_.)*(x_)^2)), x_ 
Symbol] :> Simp[(b*e - a*f)/(b*c - a*d)   Int[1/(a + b*x^2), x], x] - Simp[ 
(d*e - c*f)/(b*c - a*d)   Int[1/(c + d*x^2), x], x] /; FreeQ[{a, b, c, d, e 
, f}, x]
 

rule 441
Int[((g_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_ 
)*((e_) + (f_.)*(x_)^2), x_Symbol] :> Simp[(-(b*e - a*f))*(g*x)^(m + 1)*(a 
+ b*x^2)^(p + 1)*((c + d*x^2)^(q + 1)/(a*g*2*(b*c - a*d)*(p + 1))), x] + Si 
mp[1/(a*2*(b*c - a*d)*(p + 1))   Int[(g*x)^m*(a + b*x^2)^(p + 1)*(c + d*x^2 
)^q*Simp[c*(b*e - a*f)*(m + 1) + e*2*(b*c - a*d)*(p + 1) + d*(b*e - a*f)*(m 
 + 2*(p + q + 2) + 1)*x^2, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, m, q}, 
 x] && LtQ[p, -1]
 

rule 445
Int[((g_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2)^(q_ 
.)*((e_) + (f_.)*(x_)^2), x_Symbol] :> Simp[e*(g*x)^(m + 1)*(a + b*x^2)^(p 
+ 1)*((c + d*x^2)^(q + 1)/(a*c*g*(m + 1))), x] + Simp[1/(a*c*g^2*(m + 1)) 
 Int[(g*x)^(m + 2)*(a + b*x^2)^p*(c + d*x^2)^q*Simp[a*f*c*(m + 1) - e*(b*c 
+ a*d)*(m + 2 + 1) - e*2*(b*c*p + a*d*q) - b*e*d*(m + 2*(p + q + 2) + 1)*x^ 
2, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, p, q}, x] && LtQ[m, -1]
 

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 4375
Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n 
_.), x_Symbol] :> Simp[-2*(a^(m/2 + n + 1/2)/d)   Subst[Int[x^m*((2 + a*x^2 
)^(m/2 + n - 1/2)/(1 + a*x^2)), x], x, Cot[c + d*x]/Sqrt[a + b*Csc[c + d*x] 
]], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0] && IntegerQ[m/2] && I 
ntegerQ[n - 1/2]
 

rule 4392
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.)*(csc[(e_.) + (f_.)*(x_)]*( 
d_.) + (c_))^(n_.), x_Symbol] :> Simp[((-a)*c)^m   Int[Cot[e + f*x]^(2*m)*( 
c + d*Csc[e + f*x])^(n - m), x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && E 
qQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && IntegerQ[m] && RationalQ[n] &&  !( 
IntegerQ[n] && GtQ[m - n, 0])
 
3.1.84.4 Maple [B] (warning: unable to verify)

Leaf count of result is larger than twice the leaf count of optimal. \(499\) vs. \(2(199)=398\).

Time = 2.48 (sec) , antiderivative size = 500, normalized size of antiderivative = 2.17

method result size
default \(-\frac {\sqrt {-\frac {2 a}{\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}\, \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \left (24 \left (\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1\right )^{\frac {9}{2}} \sin \left (f x +e \right )-24 \left (1-\cos \left (f x +e \right )\right )^{2} \left (\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1\right )^{\frac {7}{2}} \csc \left (f x +e \right )+28 \left (1-\cos \left (f x +e \right )\right )^{2} \left (\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1\right )^{\frac {5}{2}} \csc \left (f x +e \right )-4 \left (1-\cos \left (f x +e \right )\right )^{6} \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \csc \left (f x +e \right )^{5}-35 \left (1-\cos \left (f x +e \right )\right )^{2} \left (\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1\right )^{\frac {3}{2}} \csc \left (f x +e \right )+25 \left (1-\cos \left (f x +e \right )\right )^{4} \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \csc \left (f x +e \right )^{3}-192 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {2}\, \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )}{\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}\right ) \left (1-\cos \left (f x +e \right )\right )-42 \left (1-\cos \left (f x +e \right )\right )^{2} \sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\, \csc \left (f x +e \right )+213 \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )+\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}\right ) \left (1-\cos \left (f x +e \right )\right )\right )}{192 c f \,a^{3} \left (1-\cos \left (f x +e \right )\right )}\) \(500\)

input
int(1/(a+a*sec(f*x+e))^(5/2)/(c-c*sec(f*x+e)),x,method=_RETURNVERBOSE)
 
output
-1/192/c/f/a^3*(-2*a/((1-cos(f*x+e))^2*csc(f*x+e)^2-1))^(1/2)*((1-cos(f*x+ 
e))^2*csc(f*x+e)^2-1)^(1/2)/(1-cos(f*x+e))*(24*((1-cos(f*x+e))^2*csc(f*x+e 
)^2-1)^(9/2)*sin(f*x+e)-24*(1-cos(f*x+e))^2*((1-cos(f*x+e))^2*csc(f*x+e)^2 
-1)^(7/2)*csc(f*x+e)+28*(1-cos(f*x+e))^2*((1-cos(f*x+e))^2*csc(f*x+e)^2-1) 
^(5/2)*csc(f*x+e)-4*(1-cos(f*x+e))^6*((1-cos(f*x+e))^2*csc(f*x+e)^2-1)^(1/ 
2)*csc(f*x+e)^5-35*(1-cos(f*x+e))^2*((1-cos(f*x+e))^2*csc(f*x+e)^2-1)^(3/2 
)*csc(f*x+e)+25*(1-cos(f*x+e))^4*((1-cos(f*x+e))^2*csc(f*x+e)^2-1)^(1/2)*c 
sc(f*x+e)^3-192*2^(1/2)*arctanh(2^(1/2)/((1-cos(f*x+e))^2*csc(f*x+e)^2-1)^ 
(1/2)*(-cot(f*x+e)+csc(f*x+e)))*(1-cos(f*x+e))-42*(1-cos(f*x+e))^2*((1-cos 
(f*x+e))^2*csc(f*x+e)^2-1)^(1/2)*csc(f*x+e)+213*ln(csc(f*x+e)-cot(f*x+e)+( 
(1-cos(f*x+e))^2*csc(f*x+e)^2-1)^(1/2))*(1-cos(f*x+e)))
 
3.1.84.5 Fricas [A] (verification not implemented)

Time = 0.38 (sec) , antiderivative size = 608, normalized size of antiderivative = 2.64 \[ \int \frac {1}{(a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))} \, dx=\left [-\frac {71 \, \sqrt {2} {\left (\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1\right )} \sqrt {-a} \log \left (-\frac {2 \, \sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - 3 \, a \cos \left (f x + e\right )^{2} - 2 \, a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1}\right ) \sin \left (f x + e\right ) + 64 \, {\left (\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1\right )} \sqrt {-a} \log \left (-\frac {8 \, a \cos \left (f x + e\right )^{3} + 4 \, {\left (2 \, \cos \left (f x + e\right )^{2} - \cos \left (f x + e\right )\right )} \sqrt {-a} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right ) - 7 \, a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right ) + 1}\right ) \sin \left (f x + e\right ) - 4 \, {\left (27 \, \cos \left (f x + e\right )^{3} + 12 \, \cos \left (f x + e\right )^{2} - 7 \, \cos \left (f x + e\right )\right )} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}}}{128 \, {\left (a^{3} c f \cos \left (f x + e\right )^{2} + 2 \, a^{3} c f \cos \left (f x + e\right ) + a^{3} c f\right )} \sin \left (f x + e\right )}, \frac {71 \, \sqrt {2} {\left (\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt {a} \sin \left (f x + e\right )}\right ) \sin \left (f x + e\right ) + 64 \, {\left (\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1\right )} \sqrt {a} \arctan \left (\frac {2 \, \sqrt {a} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right )}{2 \, a \cos \left (f x + e\right )^{2} + a \cos \left (f x + e\right ) - a}\right ) \sin \left (f x + e\right ) + 2 \, {\left (27 \, \cos \left (f x + e\right )^{3} + 12 \, \cos \left (f x + e\right )^{2} - 7 \, \cos \left (f x + e\right )\right )} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}}}{64 \, {\left (a^{3} c f \cos \left (f x + e\right )^{2} + 2 \, a^{3} c f \cos \left (f x + e\right ) + a^{3} c f\right )} \sin \left (f x + e\right )}\right ] \]

input
integrate(1/(a+a*sec(f*x+e))^(5/2)/(c-c*sec(f*x+e)),x, algorithm="fricas")
 
output
[-1/128*(71*sqrt(2)*(cos(f*x + e)^2 + 2*cos(f*x + e) + 1)*sqrt(-a)*log(-(2 
*sqrt(2)*sqrt(-a)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*cos(f*x + e)*sin 
(f*x + e) - 3*a*cos(f*x + e)^2 - 2*a*cos(f*x + e) + a)/(cos(f*x + e)^2 + 2 
*cos(f*x + e) + 1))*sin(f*x + e) + 64*(cos(f*x + e)^2 + 2*cos(f*x + e) + 1 
)*sqrt(-a)*log(-(8*a*cos(f*x + e)^3 + 4*(2*cos(f*x + e)^2 - cos(f*x + e))* 
sqrt(-a)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*sin(f*x + e) - 7*a*cos(f* 
x + e) + a)/(cos(f*x + e) + 1))*sin(f*x + e) - 4*(27*cos(f*x + e)^3 + 12*c 
os(f*x + e)^2 - 7*cos(f*x + e))*sqrt((a*cos(f*x + e) + a)/cos(f*x + e)))/( 
(a^3*c*f*cos(f*x + e)^2 + 2*a^3*c*f*cos(f*x + e) + a^3*c*f)*sin(f*x + e)), 
 1/64*(71*sqrt(2)*(cos(f*x + e)^2 + 2*cos(f*x + e) + 1)*sqrt(a)*arctan(sqr 
t(2)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*cos(f*x + e)/(sqrt(a)*sin(f*x 
 + e)))*sin(f*x + e) + 64*(cos(f*x + e)^2 + 2*cos(f*x + e) + 1)*sqrt(a)*ar 
ctan(2*sqrt(a)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*cos(f*x + e)*sin(f* 
x + e)/(2*a*cos(f*x + e)^2 + a*cos(f*x + e) - a))*sin(f*x + e) + 2*(27*cos 
(f*x + e)^3 + 12*cos(f*x + e)^2 - 7*cos(f*x + e))*sqrt((a*cos(f*x + e) + a 
)/cos(f*x + e)))/((a^3*c*f*cos(f*x + e)^2 + 2*a^3*c*f*cos(f*x + e) + a^3*c 
*f)*sin(f*x + e))]
 
3.1.84.6 Sympy [F]

\[ \int \frac {1}{(a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))} \, dx=- \frac {\int \frac {1}{a^{2} \sqrt {a \sec {\left (e + f x \right )} + a} \sec ^{3}{\left (e + f x \right )} + a^{2} \sqrt {a \sec {\left (e + f x \right )} + a} \sec ^{2}{\left (e + f x \right )} - a^{2} \sqrt {a \sec {\left (e + f x \right )} + a} \sec {\left (e + f x \right )} - a^{2} \sqrt {a \sec {\left (e + f x \right )} + a}}\, dx}{c} \]

input
integrate(1/(a+a*sec(f*x+e))**(5/2)/(c-c*sec(f*x+e)),x)
 
output
-Integral(1/(a**2*sqrt(a*sec(e + f*x) + a)*sec(e + f*x)**3 + a**2*sqrt(a*s 
ec(e + f*x) + a)*sec(e + f*x)**2 - a**2*sqrt(a*sec(e + f*x) + a)*sec(e + f 
*x) - a**2*sqrt(a*sec(e + f*x) + a)), x)/c
 
3.1.84.7 Maxima [F]

\[ \int \frac {1}{(a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))} \, dx=\int { -\frac {1}{{\left (a \sec \left (f x + e\right ) + a\right )}^{\frac {5}{2}} {\left (c \sec \left (f x + e\right ) - c\right )}} \,d x } \]

input
integrate(1/(a+a*sec(f*x+e))^(5/2)/(c-c*sec(f*x+e)),x, algorithm="maxima")
 
output
-integrate(1/((a*sec(f*x + e) + a)^(5/2)*(c*sec(f*x + e) - c)), x)
 
3.1.84.8 Giac [F(-2)]

Exception generated. \[ \int \frac {1}{(a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))} \, dx=\text {Exception raised: TypeError} \]

input
integrate(1/(a+a*sec(f*x+e))^(5/2)/(c-c*sec(f*x+e)),x, algorithm="giac")
 
output
Exception raised: TypeError >> an error occurred running a Giac command:IN 
PUT:sage2:=int(sage0,sageVARx):;OUTPUT:index.cc index_m i_lex_is_greater E 
rror: Bad Argument Value
 
3.1.84.9 Mupad [F(-1)]

Timed out. \[ \int \frac {1}{(a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))} \, dx=\int \frac {1}{{\left (a+\frac {a}{\cos \left (e+f\,x\right )}\right )}^{5/2}\,\left (c-\frac {c}{\cos \left (e+f\,x\right )}\right )} \,d x \]

input
int(1/((a + a/cos(e + f*x))^(5/2)*(c - c/cos(e + f*x))),x)
 
output
int(1/((a + a/cos(e + f*x))^(5/2)*(c - c/cos(e + f*x))), x)